<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title> 数据统计与分析</title>
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Bluth Company">
    <link rel="shortcut icon" href="/food/Public/admin_style/assets/ico/favicon.html">
    <link href="/food/Public/admin_style/assets/css/bootstrap.css" rel="stylesheet">
    <link href="/food/Public/admin_style/assets/css/theme.css" rel="stylesheet">
    <link href="/food/Public/admin_style/assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="/food/Public/admin_style/assets/css/alertify.css" rel="stylesheet">
    <link rel="Favicon Icon" href="favicon.ico">
    
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>
  <body>
    <div id="wrap">
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <div class="logo">
            <img src="/food/Public/admin_style/assets/img/logo.png" alt="Realm Admin Template">
          </div> 
           <!-- <a class="btn btn-navbar visible-phone" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
                     </a>
           <a class="btn btn-navbar slide_menu_left visible-tablet">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
                     </a> -->

          <!-- <div class="top-menu visible-phone visible-tablet">
            <ul class="pull-right">  
              <li><a title="link to View all Messages page, no popover in phone view or tablet" href="#"><i class="icon-envelope"></i></a></li>
              <li><a title="link to View all Notifications page, no popover in phone view or tablet" href="#"><i class="icon-globe"></i></a></li>
              <li><a href="login.html"><i class="icon-off"></i></a></li>
            </ul>
          </div> -->
          <!--  <div class="top-menu visible-desktop">
                    
           <ul class="pull-right">  
             <li><a href="login.html"><i class="icon-off"></i> Logout</a></li>
           </ul>
                    </div> -->

        </div>
      </div>
    </div>

    <div class="container-fluid">

      <!-- Side menu -->  
     <div class="sidebar-nav nav-collapse collapse">
        <div class="user_side clearfix">
          <img src="/food/Public/admin_style/assets/img/qya.jpg" alt="Odinn god of Thunder">
          <h5>Admin</h5>
          <a href="#"><i class="icon-cog"></i> Settings</a>        
        </div>
          <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#aollapse2"><i class="icon-reorder"></i> <span>数据统计与分析</span></a>
            </div>
             <div id="aollapse2" class="accordion-body collapse">
              <div class="accordion-inner">
                <a class="accordion-toggle" href="<?php echo U('Index/count');?>"><i class="icon-rss"></i> 统计</a>
             
              </div>
              </div>
            
            <div class="accordion-group">
            <div class="accordion-heading">
              <a  class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#bollapse2"><i class="icon-reorder"></i> <span>用户信息</span></a>
            </div>
            <div id="bollapse2" class="accordion-body collapse">
              <div class="accordion-inner">
                <a href="<?php echo U('User/userlist');?>" class="accordion-toggle" href="notifications.html"><i class="icon-rss"></i> 用户信息列表</a>
                
              </div>
               </div>

            <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse2"><i class="icon-reorder"></i> <span>用户发布美食信息</span></a>
            </div>
           
                          
                          <div id="collapse2" class="accordion-body collapse">
              <div class="accordion-inner">
                <a href="<?php echo U('Meishis/meishislist');?>" class="accordion-toggle" href="notifications.html"><i class="icon-rss"></i>用户发布美食信息列表</a>
               
              </div>
            </div>
            <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#dollapse2"><i class="icon-reorder"></i> <span>管理员添加美食</span></a>
            </div>
            <div id="dollapse2" class="accordion-body collapse">
              <div class="accordion-inner">
                <a href="<?php echo U('Food/regfood');?>" class="accordion-toggle" href="notifications.html"><i class="icon-rss"></i> 管理员添加美食列表</a>
                
              </div>
               </div>
          </div>
          <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#eollapse2"><i class="icon-reorder"></i> <span>管理员添加的美食列表</span></a>
            </div>
            <div id="eollapse2" class="accordion-body collapse">
              <div class="accordion-inner">
                <a href="<?php echo U('Food/foodlist');?>" class="accordion-toggle" href="notifications.html"><i class="icon-rss"></i> 管理员添加的信息列表</a>
                
              </div>
               </div>
          </div>
          </div>
          <div class="accordion-group">
      <div class="accordion-heading">
        <a class="accordion-toggle b_F6F1A2" href="<?php echo U('admin/index/signout');?>"><i class="icon-tasks"></i> <span>注销登录</span></a>
      </div>
    </div>
          </div>      
        </div>
      </div>

      <!-- /Side menu -->

        <!-- Main window -->
    <div class="main_container" id="tables_page">
      <div class="row-fluid">
      <br>
        <!-- <ul class="breadcrumb">
          <li><a href="#">Home</a> <span class="divider">/</span></li>
          <li><a href="#">Pages</a> <span class="divider">/</span></li>
          <li class="active">Tables</li>
        </ul> -->
                <h2 class="heading">
                    数据统计与分析
                </h2>
            </div> <!-- /row-fluid -->


            <!--此处往下为代码改写部分-->
            <div class="row-fluid">
                <div class="widget widget-padding span12">
                    <div class="widget-header">
                        <i class="icon-group"></i>
                        <h5>数据统计</h5>
                        <div class="widget-buttons">
                            <!--<a href="#" data-title="Add User" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>-->
                            <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
                        </div>
                    </div>
                    <div class="widget-body table-responsive ">
                        <table id="users" class="table table-condensed table-striped table-bordered dataTable">
                            <thead>
                            <tr >
                                <td>注册用户</td>
                                <td>用户发布美食个数</td>
                                <td>管理员发布美食个数</td>
                                
                            </tr>
                            </thead>
                            <tbody>
                                <tr>

                                    <td><?php echo ($count1); ?></td>
                                    <td><?php echo ($count2); ?></td>
                                    <td><?php echo ($count3); ?></td>
                                    
                                </tr>
                            </tbody>
                        </table>
                    </div> <!-- /widget-body -->
                </div> <!-- /widget -->
            </div> <!-- /row-fluid -->

        </div>
        <!-- /Main window -->

    </div><!--/.fluid-container-->
</div>

<script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/raphael-min.js"></script>
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/bootstrap.js"></script>
    <script type="text/javascript" src='/food/Public/admin_style/assets/js/sparkline.js'></script>
    <script type="text/javascript" src='/food/Public/admin_style/assets/js/morris.min.js'></script>
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.dataTables.min.js"></script>   
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.masonry.min.js"></script>   
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.imagesloaded.min.js"></script>   
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.facybox.js"></script>   
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.alertify.min.js"></script> 
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/jquery.knob.js"></script>
    <script type='text/javascript' src='/food/Public/admin_style/assets/js/fullcalendar.min.js'></script>
    <script type='text/javascript' src='/food/Public/admin_style/assets/js/jquery.gritter.min.js'></script>
    <script type="text/javascript" src="/food/Public/admin_style/assets/js/realm.js"></script>
  </body>
</html><!-- wrap ends-->
</body>
</html>